let e = {
  dataobj: '{"name":"水电费啊","phone":"13544545845","idcard":"","gender":"女","like":["自由泳","蛙泳","蝶泳"]}',
  formId: '5846BCC7-63FD-49A6-A774-48728B349491',
  id: 'E22448B3-1513-43F8-9FE0-5F04213441EC',
  openid: 'oRS6z679AuxAsWngmr1fpmgcGLe8',
}

const { dataobj, formId, id, openid } = e
const convert_dataobj = JSON.parse(dataobj)
let res = { formId, id, openid }
for (let key of Object.keys(convert_dataobj)) {
  if (Array.isArray(convert_dataobj[key])) {
    res[key] = convert_dataobj[key].join(',')
  } else {
    res[key] = convert_dataobj[key]
  }
}

console.log(res)
